import java.io.Serializable;

public class Hyperlink implements Serializable
{
    /**
	 * 
	 */
	private static final long serialVersionUID = 2797893278749166639L;
	private String title;
    private String url;

    public Hyperlink(String title, String url)
    {
	this.title = title;

	// if java doesn't have 'http://' in front of the url then it doesn't like to open websites
	// Also, if the string is less than 7 characters, this breaks
	if (url.substring(0, 7).equalsIgnoreCase("http://"))
	{
	    this.url = url;
	}
	else
	{
	    this.url = "http://" + url;
	}
    }

    public String getTitle()
    {
	return this.title;
    }

    public String getUrl()
    {
	return this.url;
    }
}
